/**
 * 
 */
package com.somobile.types.converters;

import java.util.HashMap;
import java.util.Map;

import com.google.gson.JsonDeserializer;
import com.somobile.types.CommentPostType;
import com.somobile.types.UserType;

/**
 * @author Jatan
 *
 */
public class StandardDeserializers
{
	private static final StandardDeserializers _instance = new StandardDeserializers();
	
	
	private final Map<Class, JsonDeserializer> deserializers=new HashMap<Class, JsonDeserializer>(5);
	
	private StandardDeserializers()
	{
		deserializers.put(UserType.class, new EnumDeserializer(UserType.class));
		deserializers.put(CommentPostType.class, new EnumDeserializer(CommentPostType.class));
	}
	
	
	public static StandardDeserializers getInstance()
	{
		return _instance;
	}
	
	public Map<Class, JsonDeserializer> getDeserializers()
	{
		return deserializers;
	}

}
